import sys, os, glob

defs     = ['_GLIBCXX_HAS_GTHREADS', '_GLIBCXX_USE_SCHED_YIELD', '_REENTRANT', 'DEBUG', 'DEBUGMEM']
includes = ['.', '../shared', '../../includes', '../common']
cflags = '-fpermissive -std=c++0x -ggdb -pthread -Wall -Werror'
libpath = ['../../target/libs', '../../libs']
libs = ['common', 'shared', 'pthread', 'tbb']
name = 'fsops_test'

install_dir = '../../target/bin'
files = glob.glob("*.cpp") 
env = Environment(CCFLAGS=cflags, CPPDEFINES=defs, CPPPATH=includes, LIBPATH=libpath, LIBS=libs)
bin = env.Program(name, files)
env.Install(install_dir, bin)
env.Alias('install', install_dir)
